package com.jflm.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.jflm.domain.InterfaceDetails;
import com.jflm.mapper.InterfaceDetailsMapper;
import com.jflm.service.IInterfaceDetailsService;

/**
 * ******************  类说明  *********************
 * class       :  InterfaceDetailsServiceImpl
 * @author     :  xusai
 * @version    :  V1.0  
 * description :  接口详情实现类
 * @see        :                        
 * ***********************************************
 */
@Service("interfaceDetailsService")
public class InterfaceDetailsServiceImpl implements IInterfaceDetailsService{
	@Autowired
	private InterfaceDetailsMapper interfaceDetailsMapper;

	@Override
	public List<InterfaceDetails> findList(InterfaceDetails interfaceDetails) throws Exception {
		return interfaceDetailsMapper.findList(interfaceDetails);
	}

	@Override
	public int add(InterfaceDetails interfaceDetails) throws Exception {
		return interfaceDetailsMapper.add(interfaceDetails);
	}

	@Override
	public InterfaceDetails findOne(String id) throws Exception {
		return interfaceDetailsMapper.findOne(id);
	}

	@Override
	public int update(InterfaceDetails interfaceDetails) throws Exception {
		return interfaceDetailsMapper.update(interfaceDetails);
	}

	@Override
	public int delete(InterfaceDetails interfaceDetails) throws Exception {
		return interfaceDetailsMapper.delete1(interfaceDetails);
	}


}
